package cinema.model;

public class Movie {
    private String title;
    private String director;
    private String actors;
    private String plot;
    private int duration;
    private double rating;

    public Movie(String title, String director, String actors, String plot, int duration, double rating) {
        this.title = title;
        this.director = director;
        this.actors = actors;
        this.plot = plot;
        this.duration = duration;
        this.rating = rating;
    }

    public String getTitle() { return title; }
    public String getDirector() { return director; }
    public String getActors() { return actors; }
    public void print() {
        System.out.printf("片名: %s 导演: %s 主演: %s 时长: %d分钟 评分: %.1f\n简介: %s\n",
                title, director, actors, duration, rating, plot);
    }
}
